home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
001a
/
descrp22.zip
/
DESCRIP.DOC
< prev
next >
Wrap
Text File
|
1991-01-16
|
15KB
|
270 lines
DESCRIP, etc.
Ok, well I finally overcame my lazyness and decided to make these
programs semi-presentable so I could post them. The programs were written
with the intent of creating a database of all the files I have on diskette.
After writing the programs to automatically enter the contents of a floppy
into an importable ascii database file and entering about two hunderd high
density diskettes, it occurred to me that I would have to enter almost 3000
descriptions which is beyond the scope of my present lifetime. So I wrote
the rest of the programs to let me "steal" the file descriptions from the
pcbfiles.lst file which I could d/l from my local bbs. Enough rambling, the
following programs should be included in this zip.
This is by no means a fancy package (the words "quick and dirty" come
to mind), but some of y'all might find it useful.
ADDDSKS1 EXE - shell to process sequentially numbered disks - use w/ a.bat
and dir2file
DIR2FILE EXE - use w/ a.bat to get diskette dir listings into importable
ASCII format
A BAT - rearrange this to suit your taste needs to be used w/ adddsks1
& dir2file
DATEFMT EXE - convert output from dir2file to mm/dd/yy format (if you need it)
SEQ2RND EXE - convert sequential files to/from random files
DESCRIP1 EXE - steal descriptions from bbs filelist
DESCRIP2 EXE - same as descrip1, only doesn't compare file extentions,
good for different archive types or picture formats
PCB2TXT EXE - convert standard pcbfiles.lst to importable format
BRN2TXT EXE - convert Brentwood style BBSfilelist to importable format.
EXEC2TXT EXE - convert execnet format filelist to importable format
CLOSQUOT EXE - adds closing quotes to lines that may be missing them
ADDFIELD EXE - adds two empty fields to delimeted file (,"","")
_____________________________________________________________________________
Here's the knarly details. The first 3 files (listed above) take a
floppy in drive a: and put the directory in importable format, adding a
field for the volume label (which can be the actual volume label written
on the disk magnetically, or just the label you write on the floppy
sticker) - it must be entered manually in either case. It is 11 chars
max. To process single diskettes, enter "a <volumelabel>", if you have
multiple diskettes to process, adddsks1 will let you enter a root and a
number to start with. (if your root is "tp" and you start with "33", the
labels will be entered into the file as "tp33", "tp34", etc.) The output
of these programs consists of a file called "master.txt" with filename,
bytes, date, and volumelabel fields. NOTE: All text fields have strings
enclosed by quotes, and use a comma delimiter, and a cr/lf at the end of
a line. Also, most of these programs look for commmand.com in c:\. Oh,
yeah, you can run datefmt on master.txt if you need to change the date
format from mm-dd-yy to mm/dd/yy. Next,you have to add two empty fields
to the master file. I do a few disks at a time, then import master.txt
into paradox, then restructure the table to include a "category" field
(9 chars) and a "description" field (255 chars). The field names don't
matter at this point since I export the my whole list into a textfile
before I do the rest. If you don't have a database program, you'll have
to use the addfield program (syntax: ADDFIELD <infile> <outfile>) or use
an editor to add the 2 blank fields (,"",""), the list wont be of much
use anyway unless you have some program to make it user-friendly. Next,
you will need a bbs file list with descriptions, etc. Use pcb2txt to
convert stansdard pcbfiles.lst to importable format. This is
pcbfiles.lst format, at least the one's I've seen:
╒═════════════════════════════════════════════════════════════════════════════╕
│ Over The Edge BBS │
│ Communications Programs & Utilities │
├─────────────────────────────────────────────────────────────────────────────┤
├─────────────┤ Last Updated on August 30, 1990 at 4:03 AM ├─────────────┤
├─────────────────────────────────────────────────────────────────────────────┤
│ On-Line Off-Line │
│ Total Files : 72 0 │
│ Total Bytes : 4,731,500 0 │
├─────────────────────────────────────────────────────────────────────────────┤
│Filename Size Date File Description │
╘═════════════════════════════════════════════════════════════════════════════╛
121.ZIP 32031 03-17-90 121 communications program
19200.ZIP 640 05-25-90 lets COM1 operate at 19200 baud
APILOT17.ZIP 76337 03-12-90 Add external protocols to many programs
| D/L 2
ASPFILE2.ZIP 5017 05-11-90 script files for pcplus to logon to WC & PCB
AT.ZIP 3077 06-19-88 Alows you to enter modem commands from DOS
ATSET.ZIP 31315 03-17-90 set hayes modem ram for ATZ command
BBPOWERI.ZIP 128663 03-17-90 byte bros. powernode I external protocol
| shell
-----------------------------------------------------------------------------
etc.,etc. An other bbs format that can be dealt with is what I found on
execnet (in Mt. Vernon, NY), which is a variation on pcbfiles.lst. To process
this format, use the exec2txt program. Here's an example of that format:
-= The Executive Network - A Professional Information System =-
Catalog of files by subject, in alphabetical order as of 08-27-90
Main Board Directory 1 - Communications Programs and Related Utilities
FILENAME SIZE DATE D E S C R I P T I O N
------------------------------------------------------------------------------
* LOOKING FOR QMODEM? JOIN THE QMODEM SUPPORT CONFERENCE FOR *
* SUPPORT AND 4 DIRECTORIES DEDICATED TO QMODEM ONLY! *
1200BDTR.ZIP 3207 06-16-90 1200 Baud Dtr Carrier Dropping.
121-V22.ZIP 71974 03-25-88 Latest Version of PC to pc Communications.
1401INFO.ZIP 7033 06-03-88 GT14.01 Bug Fix InformationN
16550A.ZIP 5448 06-25-89 Turn The 16550an Uart Fifo Buffer On/Off
192HST10.ZIP 14244 01-01-89 19200hst V1.0: Configures USR Hst Modems to
Run at 19200: Shuts Off Data Compress For
Faster Arc Xfers W/Tp5 Source
1TO1-V22.ZIP 72052 07-19-90 Talk While Exhanging File (Excellent)
224SET.ZIP 1549 11-27-87 Settings For M224e From Forbin.
_____________________________________________________________________________
Here is another file format that you can process; the program to process
this format is brn2txt.exe -- you will have to remove the header with an
editor before you process it though. Header
V
V
V
The Brentwood BBS!
Filename: DIR19
Updated: Dec 16, 1990
12:07:00 pm Page: 1
CLNUP200.ZIP 57010 10-27-90 Cleanup Ver 2.00. Cleans up All Those
Temporary And Backup Files on Your Disks. Now
Supports DOS Commands And Can Exclude
Directories From Processing.
COMMCHK.ZIP 20799 10-27-90 Utility to Verify Command.COM.
CRCSET.ZIP 34058 11-25-90 Anti-Virus Protection Utility That Uses A
32-Bit Crc to Test The Integrity of The
Running Program. Supporting Code in Turbo C
And Turbo Pascal is Included, as is Full
Documentation.
*** cont'd *** Page: 2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CURE100.ZIP 8614 12-01-89 Placebo V1.0: The Ultimate Virus
Scare Cure.
DC89SCAN.ZIP 17363 11-15-89 Scans For DatacRIME Virus Version 1(A) & 1(b)
Ok, now you have a bbs filelist file and a list of your own files
on floppy without descriptions or categories (after you use these utils
once, you will have categories & descriptions for some files; don't
worry, they will not be overwritten; only empty fields are filled in).
Now you have to sort the bbs file alphabetically by filename. This is
because the main program uses a binary search to speed up processing; my
first attempt at this didn't, and I figured that it would've taken 3
weeks to process 3000 filenames on my 10Mhz 286. As it is, the program
takes between 5 and 15 minutes, depending on the size of the bbs file.
Ok, now that you have an alphabetized bbs file (from now on referred to
as bbs.seq -seq=sequential) and your personal floppy index file (now
referred to as idx.seq - not necessarily alpabetized). If you plan to
fill in the category field as well as the desc. field, you will have to
process each bbs directory listing individually. If this is the case,
then at this point (after alphabetizing) decide on a category name for
the bbs.seq which you are about to process (0-9 chars) -- lets say you
picked "util/disk" for your category name. Then you would add the line:
"categoryxxxx","util/disk" to the top of bbs.seq before proceeding. Now
you got to convert the sequential files to random access files
(necessary for binary search) with the seq2rnd program. Choice 1 will
take bbs.seq (and it must be named that) and convert it to bbs.rnd
--bbs.seq has 2 fields, filename and description (enclosed in quotes,
etc.). Choice 2 converts idx.seq to idx.rnd (idx.seq consists of the
following fields: filename, bytes, date, volumelabel[11], category[9],
description[255]) Note - random access files, like database files, are
much larger than the ascii equivalent. a 100k ascii file may yeild a
900k .RND file. If for some reason you need to convert bbs.rnd back to
bbs.seq, choice 4 will do it for you (like if you delete your originals)
- these programs use output files and do not overwrite the input files.
So anyway, you have bbs.rnd and idx.rnd, now it's funtime. if you want
to steal descriptions if the whole ilename matches, use descrip1; if you
want to ignore the file extentions, (good for gifs, which some people
zip & some don't, or if you have a mixture of zip, arc, pak, whatever)
use descrip2. If you just enter the program names without a commandline,
you will be treated to the command syntax. A couple of things to note,
these programs (especially descrip1 & 2) work more reliably if you
execute them directly from the commandline. There is nothing wrong with
the programs themselves, but I have gotten corrupted files by executing
them from inside a shell (only occasionally) - This may be due to a bug
in the turbo pascal 5.5 compiler, I don't know. Also, make sure you
leave enough disk free for the output file (which should be the same
size as idx.rnd) When you get your output file, rename it out.rnd, run
seq2rnd, choose choice 3, and soon you will have out.seq, the finished
product. Hey - if you're doing a bunch of directories from your bbs
list, you can rename out.rnd to idx.rnd, make a new bbs.rnd (or whatever
filenames) and go for it again. One more note, if there were any
descriptions longer than 255 characters, they will be truncated, and
will more than likely be missing a closing quote, which your database
program may not like (mine doesn't) - also now and again a line of
garbage will result from who knows what. Double quotes should be
replaced by single quotes using a text editor global replace " with '
(^qa - " - ' - N(o ask) in qedit) before any program is run on the bbs
files (in other words, when they're fresh off the bbs). To fix the
unclosed quotes, run the program CLOSQUOT (syntax: CLOSQUOT <infile>
<outfile>). Like I said, these programs are quick & dirty, but you
might need them, (chances are if you read this far...) so what the hey.
Starting with version 2.0, this program is shareware. If you use it,
please send me $5.00. Registered users are entitled to support which
includes my adding support for bbs file formats which you may need to
process. If there is a bbsfile format you want to be able to process,
send me a sample of it with your $5 and I will implement it (I will have
to charge you an additional $1.50 for each disk I mail you though). This
is still a bargain. If any of you want the tp5.5 code, it'll cost you
$10. My adress is below, you can also reach me on the boards listed at
the bottom of the doc - if there is another update, you'll find it on
those boards.
My address:
David Lipper
41 Greenridge Ave.
White Plains, NY 10605
Over The Edge BBS - 300-19,200 HST (914) 747-4635
Brentwood BBS 1200/2400 (38,400 HST w/ subscription) (914) 835-7898
Cloud-9 BBS (914) 682-1965 300-19,200 HST D/S
You can send me mail on these boards or at:
UNIX mail: cit2221@uncnsrd.UUCP
Internet: cis.ohio-state.edu!edspny!uncnsrd!cit2221
_____________________________________________________________________
NOTE: These programs do no error checking, so if you misspell a filename,
most of them will go ahead and run until they run out of hard disk space,
and then some. So check your spelling, etc. & if they seem to be taking too
long, hit ctrl-break or reset. All the programs run pretty fast (under 2
minutes), except for descrip1 & 2, which, with idx.seq=150k & bbs.seq=300k,
take maybe 8-15 minutes on my 10Mhz 286 w/ 40ms HD. It runs considerably
faster on my 386/25 w/ 24ms HD (which used to be a 286/10...).
ALSO, make sure you have LOTS of HD space free -- My idx.seq
(sequential) file which is about 350k produces a idx.rnd (random) file
of about 1.5 megs; also remember that when you run descrip, it will
produce an output file the same size as the input file.
Turbo Pascal is a trademark of Borland International.
Quickbasic is a trademark of Microsoft Corp.
Revision history:
1.0 initial release
2.0 Added a couple of utility programs (ADDFIELD, CLOSQUOT); fixed a
couple of bugs, like SEQ2RND was corrupting entries with less than 3
characters in the extension. Fixed. Descrip now has a running
display of what record # it's processing, so you'll know it's
working & how long it's gonna take. Added a third BBSfile format
that can be processed.
2.1 Fixed bug in SEQ2RND which prevented the other stuff from working.
2.2 Gee I goofed, I forgot to include BRUN45.EXE, which is necessary for
some of the programs to work. This version includes it. (boy do I
feel stupid...)